Solve word problems involving trigonometric models